(function(window, undefined) {
  var dictionary = {
    "157c3ff2-649d-4408-b380-8e5553d4dbe4": "Alerts extended screen",
    "8a4897e9-b064-4cfa-b08e-6f61f2d8ba02": "Splash screen",
    "2889e0d5-b701-4631-a45d-e79966deda3e": "Devices extended screen",
    "c5119ebc-7832-42d8-a1d7-47c7d9065c14": "Main screen",
    "30151b7a-ef80-4298-9571-f42294a7af93": "Accounts screen",
    "c293d9eb-ec0f-4186-9ec0-5ec3670b3023": "Devices screen",
    "0a9b90fa-a433-4d0f-93d8-593d463baacb": "Alerts screen",
    "1432c19d-c891-4d09-9d9e-a0e9b91f9494": "Login screen",
    "4987dfdd-3554-4b30-a3ea-681b2f281485": "Logout screen",
    "a72cf0e9-1926-450c-a2b7-a537a3ea9dda": "Graphic screen",
    "f39803f7-df02-4169-93eb-7547fb8c961a": "Template 1"
  };

  var uriRE = /^(\/#)?(screens|templates|masters)\/(.*)(\.html)?/;
  window.lookUpURL = function(fragment) {
    var matches = uriRE.exec(fragment || "") || [],
        folder = matches[2] || "",
        canvas = matches[3] || "",
        name, url;
    if(dictionary.hasOwnProperty(canvas)) { /* search by name */
      url = folder + "/" + canvas;
    }
    return url;
  };

  window.lookUpName = function(fragment) {
    var matches = uriRE.exec(fragment || "") || [],
        folder = matches[2] || "",
        canvas = matches[3] || "",
        name, canvasName;
    if(dictionary.hasOwnProperty(canvas)) { /* search by name */
      canvasName = dictionary[canvas];
    }
    return canvasName;
  };
})(window);